package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Supplier;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * ClassName: SupplierDao
 * Description:
 * Date: 2022/1/15 16:08
 *
 * @version:
 * @since JDK 1.8
 */


@Repository
public interface SupplierDao {
    Page<Supplier> findPage(@Param("supplierName") String supplierName);

    Supplier selectById(@Param("supplierId")Integer supplierId);

    void deleteSupplierById(@Param("supplierId") Integer supplierId);

    void UpdateSupplierById(@Param("supplier") Supplier supplier);

    void insertSupplier(@Param("supplier") Supplier supplier);

    List<Supplier> getComboboxList(@Param("q")String q);

    String selectById1(@Param("supplierId") Integer supplierId);
}
